#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.common.bean.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * Description: 访问链接控制
 *
 * @author wupanhua
 * @date 2019/8/6 15:28
 *
 * <pre>
 *              ${copyright}
 *      Copyright (c) 2019. All Rights Reserved.
 * </pre>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddOperateVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private Long id;
    /**
     *编码
     */
    @NotNull
    @Length(max = 4)
    @ApiModelProperty("编码")
    private String code;
    /**
     *元素名称
     */
    @NotNull
    @Length(min = 2, max = 16)
    @ApiModelProperty("元素名称")
    private String name;
    /**
     *菜单主键
     */
    @NotNull
    @ApiModelProperty("菜单主键")
    private Long menuId;
    /**
     *元素链接
     */
    @NotNull
    @Length(max = 128)
    @ApiModelProperty("元素链接")
    private String url;
    /**
     *创建时间
     */
    @ApiModelProperty("创建时间")
    private Date createdate;
    /**
     *更新时间
     */
    @ApiModelProperty("更新时间")
    private Date updatedate;
    /**
     *状态
     */
    @NotNull
    @Min(0)
    @Max(2)
    @ApiModelProperty("状态")
    private Integer status;

}
